package org.raymond.icloud.apis.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.raymond.icloud.common.core.mybatis.entity.AbstractEntity;

import javax.validation.constraints.NotEmpty;

/**
 * @author raymond
 * @version V1.0
 * @Description: TODO
 */
@Data
@Builder
@TableName("t_role_permission_rel")
public class TRolePermissionRel extends AbstractEntity {
    @ApiModelProperty(name="roleId", value = "角色Id", dataType="Long")
    @NotEmpty(message = "roleId不能为空")
    @TableField("role_id")
    private Long roleId;


    @ApiModelProperty(name="permissionId", value = "权限Id", dataType="Long")
    @NotEmpty(message = "permissionId不能为空")
    @TableField("permission_id")
    private Long permissionId;
}
